package gov.ccswj.modules.ccbusiness.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import gov.ccswj.common.utils.Query;
import gov.ccswj.modules.ccbusiness.dao.CCompanyNameDao;
import gov.ccswj.modules.ccbusiness.entity.CCompanyNameEntity;
import gov.ccswj.modules.ccbusiness.service.CCompanyNameService;



@Service("cCompanyNameService")
public class CCompanyNameServiceImpl implements CCompanyNameService {
	@Autowired
	private CCompanyNameDao cCompanyNameDao;

    /**
     * 重载方法
     * @param id
     * @return
     */
    @Override
    public CCompanyNameEntity queryObject(Integer id) {
        return cCompanyNameDao.queryObject(id);
    }

    /**
     * 重载方法
     * @param cChangeinfo
     */
    @Override
    public void update(CCompanyNameEntity cChangeinfo) {
        cCompanyNameDao.update(cChangeinfo);
        
    }

    /**
     * 重载方法
     * @return
     */
    @Override
    public List<CCompanyNameEntity> queryAll() {
        return cCompanyNameDao.queryAll();
    }

	@Override
	public List<CCompanyNameEntity> queryList(Query query) {
		return cCompanyNameDao.queryList(query);
	}
	@Override
	public List<CCompanyNameEntity> getList(Integer pagenum,Integer limitnum) {
		pagenum=pagenum*limitnum;
		return cCompanyNameDao.getList(pagenum,limitnum);
	}

	@Override
	public int queryTotal() {
		return cCompanyNameDao.queryTotal();
	}
	
	
}
